        <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix">
          <div class="dataTables_info"><?php echo sprintf(Yii::t('main', 'pager.label'), ($pages->getOffset() + 1), ($pages->getPageSize() * $pages->getCurrentPage() + $countData), $pages->getItemCount()); ?></div>
          <?php if($pages->getPageCount() > 1) : ?>
          <div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers">
            <?php if ($pages->getCurrentPage() <= 0):?>
              <span class="first ui-corner-tl ui-corner-bl fg-button ui-button ui-state-default ui-state-disabled"><?php echo Yii::t('main', 'pager.first'); ?></span>
              <span class="previous fg-button ui-button ui-state-default ui-state-disabled"><?php echo Yii::t('main', 'pager.prev'); ?></span>
            <?php else :?>
              <span class="first ui-corner-tl ui-corner-bl fg-button ui-button ui-state-default"><a href="<?php echo $pages->createPageUrl( $this, 0 ); ?>"><?php echo Yii::t('main', 'pager.first'); ?></a></span>
              <span class="previous fg-button ui-button ui-state-default"><a href="<?php echo $pages->createPageUrl( $this, $pages->getCurrentPage() - 1 ); ?>"><?php echo Yii::t('main', 'pager.prev'); ?></a></span>
            <?php endif; ?>
            <span>
            <?php
              $start = $pages->getCurrentPage() - 3;
              $end = $pages->getCurrentPage() + 3;

              if ($start < 0) {
                $start = 0;
              }

              if ($end > $pages->getPageCount()) {
                $end = $pages->getPageCount();
              }
            ?>
            <?php for( $i= $start; $i < $end; $i++ ): ?>
              <?php if ($i == $pages->getCurrentPage()): ?>
                <span class="fg-button ui-button ui-state-default ui-state-disabled" ><?php echo ($i+1) ?></span>
              <?php else : ?>
                <span class="fg-button ui-button ui-state-default">
                  <a href="<?php echo $pages->createPageUrl( $this, $i ); ?>"><?php echo ($i+1) ?></a>
                </span>
              <?php endif; ?>
            <?php endfor; ?>
            </span>

            <?php if ($pages->getCurrentPage() == $pages->getPageCount() - 1): ?>
              <span class="next fg-button ui-button ui-state-default ui-state-disabled"><?php echo Yii::t('main', 'pager.next'); ?></span>
              <span class="last ui-corner-tr ui-corner-br fg-button ui-button ui-state-default ui-state-disabled"><?php echo Yii::t('main', 'pager.last'); ?></span>
            <?php else :?>
              <span class="next fg-button ui-button ui-state-default"><a href="<?php echo $pages->createPageUrl( $this, $pages->getCurrentPage() + 1 ); ?>"><?php echo Yii::t('main', 'pager.next'); ?></a></span>
              <span class="last ui-corner-tr ui-corner-br fg-button ui-button ui-state-default"><a href="<?php echo $pages->createPageUrl( $this, $pages->getPageCount() - 1 ); ?>"><?php echo Yii::t('main', 'pager.last'); ?></a></span>
            <?php endif; ?>
          </div>
          <?php endif; ?>
        </div>


